package org.hdax.easybuyorder.client;

import org.hdax.easybuyorder.fallback.UserClientImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "easybuy-user",fallback = UserClientImpl.class)
public interface UserClient {

    @RequestMapping("/user/{id}")
    public Object findById(@PathVariable("id") Integer id);
}
